package com.baobao.dao;

import com.baobao.domain.Address;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Address entities.
 * 
 */
public interface AddressDAO extends JpaDao<Address> {

	/**
	 * JPQL Query - findAddressByBanjiIdContaining
	 *
	 */
	public Set<Address> findAddressByBanjiIdContaining(String banjiId) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByBanjiIdContaining
	 *
	 */
	public Set<Address> findAddressByBanjiIdContaining(String banjiId, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByImgUrl
	 *
	 */
	public Set<Address> findAddressByImgUrl(String imgUrl) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByImgUrl
	 *
	 */
	public Set<Address> findAddressByImgUrl(String imgUrl, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllAddresss
	 *
	 */
	public Set<Address> findAllAddresss() throws DataAccessException;

	/**
	 * JPQL Query - findAllAddresss
	 *
	 */
	public Set<Address> findAllAddresss(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByPrimaryKey
	 *
	 */
	public Address findAddressByPrimaryKey(String phone, String banjiId_1) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByPrimaryKey
	 *
	 */
	public Address findAddressByPrimaryKey(String phone, String banjiId_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByPhoneContaining
	 *
	 */
	public Set<Address> findAddressByPhoneContaining(String phone_1) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByPhoneContaining
	 *
	 */
	public Set<Address> findAddressByPhoneContaining(String phone_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByImgUrlContaining
	 *
	 */
	public Set<Address> findAddressByImgUrlContaining(String imgUrl_1) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByImgUrlContaining
	 *
	 */
	public Set<Address> findAddressByImgUrlContaining(String imgUrl_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByPhone
	 *
	 */
	public Set<Address> findAddressByPhone(String phone_2) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByPhone
	 *
	 */
	public Set<Address> findAddressByPhone(String phone_2, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByBanjiId
	 *
	 */
	public Set<Address> findAddressByBanjiId(String banjiId_2) throws DataAccessException;

	/**
	 * JPQL Query - findAddressByBanjiId
	 *
	 */
	public Set<Address> findAddressByBanjiId(String banjiId_2, int startResult, int maxRows) throws DataAccessException;

}